package com.multi.thread.chapter07.demo01;

public class MyThread02 extends Thread {
	
	@Override
	public void run() {
		try {
			System.out.println("begin sleep!");
			Thread.sleep(10000);
			System.out.println("  end sleep!");
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
	
	public static void main(String[] args) throws InterruptedException {
		MyThread02 t = new MyThread02();
		t.start();
		Thread.sleep(1000);
		System.out.println("main方法中的状态：" + t.getState());
	}

}
